package com.felight.ems.collections;

import java.util.ArrayList;
import java.util.LinkedList;

public class TestBenchMark {

	
	public static void main(String[] args) {
		int size = 100000, pos = 9000, position = 8000;
		ListBenchMarking ben = new ListBenchMarking();
		ArrayList<String> alist = ben.generateRandomArrayList(size);
		LinkedList<String> linkedlist = ben.cloneArrayList(alist);
		//System.out.println(alist);
		//System.out.println(linkedlist);
		
		//long aResult = ben.benchMarkArrayList(alist, pos, "Ankitha");
		//long lResult = ben.benchMarkLinkedList(linkedlist, pos, "ankitha");
		long raRes = ben.benchMarkAList(alist,position);
		long rlRes = ben.benchMarkLList(linkedlist,position);
		//System.out.println("time taken by arraylist is:"+aResult+"\n"+"time taken by linkedlist is:"+lResult);
		System.out.println("time taken by arraylist is:"+raRes+"\n"+"time taken by linkedlist is:"+rlRes);
		//System.out.println(alist);
		//System.out.println(linkedlist);
	}

}
